package com.example.demo.comtroller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 郝文雪
 * @date 2022/7/15 21:56
 * @Description Test
 */
@RestController
public class CalcController {
    @RequestMapping("/calc")
    public String calc(Integer num1,Integer num2){
        return "<h1>结果为："+(num1+num2)+"</h1>"+
                "<p><a href='javascript:history.go(-1);'>返回上一步</a>";
    }
}
